package com.mmorgp.glsurface.layers;

import java.util.ArrayList;
import java.util.List;

import javax.microedition.khronos.opengles.GL10;

import com.mmorgp.glsurface.RootObject;

public class Layer {
	private GL10 gl10=null;
	private List<RootObject> elements=new ArrayList<RootObject>();
	
	public Layer(GL10 gl10){
		this.gl10=gl10;
	}
	
	public void draw(GL10 gl10){
		for(RootObject tObject : elements){
			tObject.draw(gl10);
		}
	}
	
	public void update(long Interval){
		for(RootObject tObject : elements){
			tObject.update(Interval);
		}
	}
}
